package com.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MvcConfig implements WebMvcConfigurer {
    //配置
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
       registry.addViewController("login").setViewName("login");
        registry.addViewController("register").setViewName("regist");
        registry.addViewController("emplist").setViewName("emplist");
        registry.addViewController("addEmp").setViewName("addEmp");
        registry.addViewController("updateEmp").setViewName("updateEmp");
        registry.addViewController("frontpage").setViewName("frontpage");
        registry.addViewController("demo").setViewName("demo");
        registry.addViewController("updateUser").setViewName("updateUser");
        registry.addViewController("index").setViewName("index");
        registry.addViewController("judge").setViewName("judge");
        registry.addViewController("log").setViewName("log");
        registry.addViewController("adde").setViewName("adde");
    }

}
